package xjtu.se.articlecommunity.user.register;

import java.text.SimpleDateFormat;
import java.util.TimeZone;

public class Uid {

    public static String uid() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyMMddhhmmssSS");
        sdf.setTimeZone(TimeZone.getTimeZone("Asia/Beijing"));
        java.util.Date date = new java.util.Date();
        String str = sdf.format(date);
        System.out.println(str);
        return str;
    }
}
